package cn.likole.oj.bean;

import org.nutz.dao.entity.annotation.*;

import java.util.List;

/**
 * Created by likole on 8/4/18.
 * 成就
 */
@Table("achievement")
public class Achievement {

    /**
     * 成就编号
     */
    @Id
    private int achievementId;

    /**
     * 成就名称
     */
    @Name
    private String name;

    /**
     * 成就描述
     */
    @Column
    private String description;

    /**
     * 隐藏成就
     */
    @Column
    private boolean hide;

    /**
     * 成就类型
     */
    private int type;

    /**
     * 成就条件
     */
    @Many(field = "achievementId")
    private List<AchievementConfig> achievementConfigs;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isHide() {
        return hide;
    }

    public void setHide(boolean hide) {
        this.hide = hide;
    }

    public int getAchievementId() {
        return achievementId;
    }

    public void setAchievementId(int achievementId) {
        this.achievementId = achievementId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<AchievementConfig> getAchievementConfigs() {
        return achievementConfigs;
    }

    public void setAchievementConfigs(List<AchievementConfig> achievementConfigs) {
        this.achievementConfigs = achievementConfigs;
    }
}
